<?php

namespace App\Http\Controllers\admin_system;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Models\V1\OrderModel;
use DB;

class OrderController extends Controller
{

    public function user_order(Request $request)
    {
        $keywords   = $request->input('keywords');
        $orderModel = new OrderModel();
        $orders     = $orderModel->get_orders();
        $data       = [
            'orders'    => $orders,
            'keywords'  => $keywords
        ];
        return view('admin_system/order/user-order',$data);
    }


    public function ios_order()
    {

        $orders     = DB::table('orderprepaidlog')->where('pay_status',1)->get();
        return view('admin_system/order/ios-order',['orders'=>$orders]);

    }

    /**
     * 退款
     * */
    public function refund()
    {
        return apiData()->notice('本功能暂未使用');
    }


}
